package com.livgo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.livgo.dao.dto.UploadFileDto;
import com.livgo.dao.po.FileInfo;
import com.livgo.dao.po.PageBean;
import com.livgo.dao.po.Result;
import com.livgo.dao.vo.FileInfoVo;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.http.ResponseEntity;

public interface FileService extends IService <FileInfo> {
    String upload(UploadFileDto uploadFileDto);

    ResponseEntity<byte[]> download(Integer id, HttpServletRequest request);

    PageBean<FileInfoVo> listPage(Integer pageNum, Integer pageSize);

    FileInfoVo info(String code);

    Result delete(Integer id, String secretKey);
}
